package com.chushouya.order.dto.api.partnernotify;

import com.alibaba.fastjson.annotation.JSONField;
import com.general.framework.core.lang.Dates;
import com.chushouya.order.constants.PartnerNotifyTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("工程师确认接单")
public class ConfirmNotifyDTO extends PartnerBaseNotify{
    public ConfirmNotifyDTO(){

        super.setNotifyType(PartnerNotifyTypeEnum.CONFIRM.value());
        super.setNotifyName(PartnerNotifyTypeEnum.CONFIRM.named());
    }

    /**
     * 工程师确认接单数据
     */
    private ConfirmNotifyData data;

    @Data
    @ApiModel("工程师确认接单数据")
    public static class ConfirmNotifyData{

        /**
         * 订单状态
         */
        @ApiModelProperty("订单状态")
        private Integer orderStatus;

        @ApiModelProperty("确定时间")
        @JSONField(format= Dates.FMT_FULL_TIME)
        private Date confirmTime;

        @ApiModelProperty("备注")
        private String remark;
    }
}
